package com.sunseaypw.springboot;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.v3.oas.annotations.Operation;

@RestController
public class MyController {
    
    @Autowired
    ServerConfig serverConfig;

    @RequestMapping("/my")
    @Operation(summary = "这是一个接口啊 user object by it's id.")
    String hello() {
        return "Hello World!7888888888888888888888888888888---当前服务端口为："+serverConfig.port;
    }
}
